<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:text="${title}">API 文档</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            padding: 60px;
            text-align: center;
            max-width: 800px;
            width: 90%;
        }
        
        .title {
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #666;
            margin-bottom: 50px;
            line-height: 1.6;
        }
        
        .docs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .doc-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 30px 20px;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .doc-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            border-color: #667eea;
            text-decoration: none;
            color: inherit;
        }
        
        .doc-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            display: block;
        }
        
        .doc-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }
        
        .doc-desc {
            font-size: 0.95rem;
            color: #666;
            line-height: 1.5;
        }
        
        .knife4j { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
        .swagger { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
        .rapidoc { background: linear-gradient(135deg, #a8edea, #fed6e3); }
        .redoc { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
        
        .footer {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid #eee;
            color: #999;
            font-size: 0.9rem;
        }
        
        .api-info {
            background: #e3f2fd;
            border-radius: 10px;
            padding: 20px;
            margin: 30px 0;
            border-left: 4px solid #2196f3;
        }
        
        .api-info h3 {
            color: #1976d2;
            margin-bottom: 10px;
        }
        
        .api-info p {
            color: #424242;
            margin: 5px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="title" th:text="${title}">编码生成器 API 文档</h1>
        <p class="subtitle">选择您喜欢的API文档界面风格，体验不同的交互方式</p>
        
        <div class="api-info">
            <h3>🚀 API 服务信息</h3>
            <p><strong>服务名称：</strong>编码生成器 Spring Boot Starter</p>
            <p><strong>版本：</strong>1.0.0</p>
            <p><strong>基础路径：</strong>/api/codes</p>
        </div>
        
        <div class="docs-grid">
            <a href="/code-generator/doc.html" class="doc-card knife4j">
                <span class="doc-icon">🔪</span>
                <div class="doc-name">Knife4j</div>
                <div class="doc-desc">功能强大的增强版Swagger UI，支持离线文档、接口排序等高级功能</div>
            </a>
            
            <a href="/code-generator/swagger-ui.html" class="doc-card swagger">
                <span class="doc-icon">📋</span>
                <div class="doc-name">Swagger UI</div>
                <div class="doc-desc">经典的API文档界面，简洁实用，广泛使用的标准选择</div>
            </a>
            
            <a href="/code-generator/docs/rapidoc" class="doc-card rapidoc">
                <span class="doc-icon">⚡</span>
                <div class="doc-name">RapiDoc</div>
                <div class="doc-desc">现代化的API文档界面，响应式设计，支持多种主题和布局</div>
            </a>
            
            <a href="/code-generator/docs/redoc" class="doc-card redoc">
                <span class="doc-icon">📖</span>
                <div class="doc-name">ReDoc</div>
                <div class="doc-desc">美观的三栏式布局，适合阅读详细的API文档，支持搜索和导航</div>
            </a>
        </div>
        
        <div class="footer">
            <p>💡 提示：每种界面都有其独特的优势，建议根据使用场景选择合适的文档界面</p>
        </div>
    </div>
</body>
</html>